package top.hidoctor.auscultation;

import android.app.Application;
import android.support.multidex.MultiDex;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.tang.user.UserInfoManager;

public class App extends Application {
    private static App myApplication = null;


    public static App getApplication() {
        if (myApplication == null) {
            myApplication = new App();
        }
        return myApplication;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        UserInfoManager.getInstance().initOnApplicationCreate(this);
        MultiDex.install(this);
        Fresco.initialize(this);
    }
}
